"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Articles",
      [
        {
          title: "Node项目基本搭建",
          content: "node express mysql, sequelize 解析post参数 处理跨域",
          author: "套路军",
          className: "node",
          pageView: 121,
          LikeCount: 19,
          createdAt: new Date().getTime(),
          updatedAt: new Date().getTime(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Articles", null, {});
  },
};
